<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
 <body>
    欢迎${!empty sessionScope.username?username:'游客'}光临
    <div style="position:absolute;left:920px">
	    <a href="${pageContext.request.contextPath}/VoteServlet?method=exit">
	    	退出
	    </a>
    </div>
    <a href="${pageContext.request.contextPath}/VoteServlet?method=findAllVoteDetail">
    	返回
    </a>
    <hr/>
    <table border="1" align="center">
		<caption>候选人详细信息</caption>
		<tr>
			<th>头像</th>
			<td>
				<img src="${vote.image.path}" width="50px" height="50px"/>
			</td>
		</tr>	
		<tr>
			<th>姓名</th>
			<td>${vote.content}</td>	
		</tr>	
		<tr>
			<th>票数</th>
			<td>${vote.ticket}</td>
		</tr>	
		<tr>
			<th>年龄</th>
			<td>${vote.detail.age}</td>
		</tr>	
		<tr>
			<th>描述</th>
			<td>${vote.detail.description}</td>
		</tr>	
    </table>	
  </body>
</html>
